<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="Campaigns.aspx.cs" Inherits="Tathata.Web.Administration.Administration_Campaigns" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Campaigns</h4>
    <br />
    <asp:GridView ID="gvCampaigns" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:BoundField DataField="CampaignID" HeaderText="CampaignID" Visible="False"></asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="50%">
                <ItemTemplate>
                    <a href="CampaignDetails.aspx?CampaignID=<%#Eval("CampaignID")%>">
                        <%#Eval("Name")%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CreatedOn" HeaderText="Created on" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="40%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="CampaignDetails.aspx?CampaignID=<%#Eval("CampaignID")%>">Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
    <input type="button" onclick="location.href='CampaignAdd.aspx'" value="Add new" id="btnAddNew"
        class="adminButton" />
    <br />
</asp:Content>
